<template>
    <div>
        <input type="text" placeholder="请输入愿望" :value="value" @input="inputChange">
    </div>
</template>

<script>
export default {
  name: '',
  props: ['value'],
  methods:{
      inputChange(e) {
          this.$emit('input', e.target.value)
      }
  },
 }
</script>

<style scoped>
input {
    width: 300px;
    height: 40px;
    padding-left: 10px;
}
</style>